package com.code.day16.a_thread;

public class Test {
    public static void main(String[] args) {
        BaoZiPu bzp = new BaoZiPu();
        Product p = new Product(bzp);
        Consumer c = new Consumer(bzp);

        Thread t1 = new Thread(p);
        Thread t2 = new Thread(c);

        t1.start();
        t2.start();

    }
}
